package com.xiaomi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName ShopSpu
 * @Description TODO
 * @Author yp
 * @Date 2021/11/28 10:08
 * @Version 1.0
 **/
@Data
@Api("spu")
public class ShopSpu {
    @ApiModelProperty("编号")
    private Integer id;
    private String spuName;
    private Integer father;
    private String images;
    private BigDecimal price;
    private String miaoShu;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date upTime;
    private Integer bianhao;
    //关联分类的表

    private String fenLeiName;
    private List<ShopSku> sku;


}
